import request from "@/utils/request";

// 物流资金计划-列表-下周资金计划
export const opNextWeekList = (data) =>
  request({
    url: `/finance/lfp/index?op=NEXT_WEEK`,
    method: "post",
    data,
  });
// 物流资金计划-列表-后四周资金计划
export const opNextAfter4WeekList = (data) =>
  request({
    url: `/finance/lfp/index?op=NEXT_AFTER4_WEEK`,
    method: "post",
    data,
  });
// 物流资金计划-列表-历史周资金计划
export const opHistoryWeekList = (data) =>
  request({
    url: `/finance/lfp/index?op=HISTORY_WEEK`,
    method: "post",
    data,
  });

// 物流资金计划-列表-历史四周资金计划
export const opHistory4WeekList = (data) =>
  request({
    url: `/finance/lfp/index?op=HISTORY_4_WEEK`,
    method: "post",
    data,
  });
// 物流资金计划-列表-月度资金计划
export const opCurrentMonthList = (data) =>
  request({
    url: `/finance/lfp/index?op=CURRENT_MONTH`,
    method: "post",
    data,
  });
// 物流资金计划-列表-月度资金计划
export const opHistoryMonthList = (data) =>
  request({
    url: `/finance/lfp/index?op=HISTORY_MONTH`,
    method: "post",
    data,
  });
// 物流资金计划-创建
export const opAdd = (data) =>
  request({
    url: `/finance/lfp/create`,
    method: "post",
    data,
  });

// 物流资金计划-调整
export const opUpdate = (data) =>
  request({
    url: `/finance/lfp/update`,
    method: "post",
    data,
  });

// 物流资金计划-调整
export const opSubmit = (data) =>
  request({
    url: `/finance/lfp/submit`,
    method: "post",
    data,
  });

// 物流资金计划-确认
export const opSure = (data) =>
  request({
    url: `/finance/lfp/sure`,
    method: "post",
    data,
  });
// 物流资金计划-详情
export const opDetail = (params) =>
  request({
    url: `/finance/lfp/detail`,
    method: "get",
    params,
  });
// 物流资金计划-获取历史周期
export const snapshotCycle = (data) =>
  request({
    url: `/opts/lfp-snapshot-cycle`,
    method: "post",
    data,
  });

//删除
export const lfpDelete = (data) =>
  request({
    url: `/finance/lfp/delete`,
    method: "post",
    data,
  });
